REM Clear Time-up Orders
REM Pending orders early than 5~7 minutes before will be canceled!
REM Run once every 2 minutes. 

REM IFD System Schedule Task
REM for SQL 2005 express

REM sqlcmd   -Usa   -Ppassword   -Sservername   -ifilename

SQLCMD -S localhost\sqlexpress -E -i clear_timeup.sql

REM FILE "clear_timeup.sql"
REM use ifd
REM exec core_auto_cancel_time_up_pending_orders

